package com.gxa.common.exception;

import lombok.Data;

/**
 * @program: microloans_system
 * @description: 异常类
 * @author: LC
 * @create: 2021-12-29 16:11
 */

@Data
public class LcException extends RuntimeException{

    //返回前端code码
    private int code;

    //返回前端msg
    private String msg;

    public LcException(){

    }

    public LcException(int code,String msg){
        super(msg);
        this.msg=msg;
        this.code=code;
    }


}